package com.robot.member.pojo.vo;

import com.robot.member.pojo.Cart;
import com.robot.member.pojo.CartDetails;

import java.io.Serializable;
import java.util.List;

/**
 * 中间类,一个购物车对应一个折扣率和多个购物车详情
 *
 * @author lin
 */
public class ShoppingCartDetails implements Serializable {
    /**
     * 一个购物车
     */
    private Cart cart;
    /**
     * 多个购物车详情
     */
    private List<CartDetails> cartDetailsList;
    /**
     * 一个折扣率
     * json vip1=会员折扣率 vip2=会长折扣率
     */
    private String rate;

    public Cart getCart() {
        return cart;
    }

    public void setCart(Cart cart) {
        this.cart = cart;
    }

    public List<CartDetails> getCartDetailsList() {
        return cartDetailsList;
    }

    public void setCartDetailsList(List<CartDetails> cartDetailsList) {
        this.cartDetailsList = cartDetailsList;
    }

    public String getRate() {
        return rate;
    }

    public void setRate(String rate) {
        this.rate = rate;
    }

    @Override
    public String toString() {
        return "CartOneAndCaetDetailsMany{" +
                "cart=" + cart +
                ", cartDetailsList=" + cartDetailsList +
                ", rate='" + rate + '\'' +
                '}';
    }
}
